-- GENERATED SPELL FOR [Prince Navarius] --


function spell0_29821(pUnit, Event) --@Sinister Shield,Self--
pUnit:FullCastSpellOnTarget(55706,pUnit)
pUnit:RegisterEvent('Sorts_29821', 618, 1)
end

function spell1_29821(pUnit, Event) --@Soul Blast,n/a--
pUnit:FullCastSpellOnTarget(50992,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_29821', 600, 1)
end

function spell2_29821(pUnit, Event) --@Soul Deflection,n/a--
pUnit:FullCastSpellOnTarget(51009,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_29821', 6291, 1)
end

function spell3_29821(pUnit, Event) --@Vampiric Bolt,n/a--
pUnit:FullCastSpellOnTarget(51016,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_29821', 2500, 1)
end

function Sorts_29821(pUnit, Event)
local choix_sorts_29821 = math.random(0, 3)
if choix_sorts_29821 == 0 then
pUnit:RegisterEvent('spell0_29821', 1, 1)
end
if choix_sorts_29821 == 1 then
pUnit:RegisterEvent('spell1_29821', 1, 1)
end
if choix_sorts_29821 == 2 then
pUnit:RegisterEvent('spell2_29821', 1, 1)
end
if choix_sorts_29821 == 3 then
pUnit:RegisterEvent('spell3_29821', 1, 1)
end
end

function mob29821_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_29821', math.random(1500, 3000), 1)
end

function mob29821_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob29821_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob29821_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(29821, 1, 'mob29821_Action')
RegisterUnitEvent(29821, 2, 'mob29821_Leave')
RegisterUnitEvent(29821, 3, 'mob29821_Kill')
RegisterUnitEvent(29821, 4, 'mob29821_Die')
